﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Final
{
    public partial class ucDanhSachKH : UserControl
    {
        LIMS_LOGISTICSEntities context = new LIMS_LOGISTICSEntities();
        public ucDanhSachKH()
        {
            InitializeComponent();
        }

        private void ucDanhSachKH_Load(object sender, EventArgs e)
        {
            var dskhachhang = from ttkhachang in context.tblSys_THONGTINKHACHHANG
                              select new
                              {
                                  ttkhachang.MACTY,
                                  ttkhachang.TENGIAODICH_V,
                                  ttkhachang.TENGIAODICH_E,
                                  ttkhachang.DIACHITIENGVIET,
                                  ttkhachang.DIENTHOAI,
                                  ttkhachang.FAX,
                                  ttkhachang.LINHVUCKD,
                                  ttkhachang.NHANVIENQLY
                              };
            dataGridView1.DataSource = dskhachhang;
        }

        private void panelControl1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
        }

    }
}
